/**
 *  time_get()
 *  zjisti aktualni cas
 */
void time_get(struct Time far *t) {
  if(t) {
    t->sec = bcd_read(0);
    t->min = bcd_read(2);
    t->hour= bcd_read(4);
  }
  return;
}

/**
 *  time_set()
 *  nastav aktualni cas
 */
void time_set(struct Time far *t) {
	if(t) {
    bcd_write(4, t->hour);
    bcd_write(2, t->min);
    bcd_write(0, t->sec);
  }
  return;
}
